
#include "fisier.h"
#include <iostream>
using std::ofstream;
using std::ifstream;
using std::ios;
#include <fstream>
#include <string>
using std::string;
#include <string.h>

Fisier::Fisier(){
    ofstream out1("citeste.txt",ios::app);
    ifstream inp("citeste.txt");
    string cuvLinie;
	char linie[100];
    int len;
	while(inp.get(linie,100))
		{
			std::cout<<linie<<"\n";
            inp.get();
            len=strlen(linie);
            cuvLinie=cuvLinie+linie[len-1];
		}
    std::cout<<cuvLinie;
    out1<<"\n"<<cuvLinie;
}

